PREVIEW: Today you'll be creating a program you can use to give people answers to their questions.

  • Click Run and enter a question you want Wesley the Wise Wizard to answer for you.
  • After you've Run the program a few times, click Submit and Next to move on.

Every time this program runs, a new random number is created and displayed. Wesley's response depends on which number it is! Can you figure out which lines of code cause Wesley's unique response based on the number?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)